﻿@model IEnumerable<Dqaqs.Web.Models.MenuItem>

@foreach(var menu in Model)
{
    <span class = @(TempData["SelectedMenu"] == menu.Title ? "selected-menu-item" : "menu-item")>
    @Html.ActionLink( menu.Title, menu.Action, menu.Controller ) </span>
}
    <div style="width: 100%; margin:4px; border-top : solid 1px #12585F;" ></div>
@if (TempData["SelectedMenu"] != null)
{
    <div class="menu-medium">
        @{ Html.RenderAction("SubItems", new { item = TempData["SelectedMenu"] });}
    </div>
}

